package com.imti.mall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.pms.pojo.PmsBrand;
import com.imti.mall.model.pms.vo.PmsBrandVo;
import com.imti.mall.product.mapper.PmsBrandCategoryDynaSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

/**
 * ClassName: pmsBrandDao
 * Description:
 * date: 2022/9/13 10:15
 *
 * @author: youhun
 * @version:
 * @since JDK 1.8
 */
@Mapper
public interface PmsBrandDao extends BaseMapper<PmsBrand> {

    @UpdateProvider(type =PmsBrandCategoryDynaSqlProvider.class,method = "UpdatePmsBrand")
    public boolean updatePmsBrand (PmsBrandVo pmsBrand);
    /**
     * 查询商品品牌列表
     * @param pmsBrand
     * @return
     */
    @SelectProvider(type = PmsBrandCategoryDynaSqlProvider.class,method="findPmsBrand")
    public List<PmsBrand> findPmsBrand(PmsBrand pmsBrand);

    /**
     * 查询商品品牌列表总条数
     * @param pmsBrand
     * @return
     */
    @SelectProvider(type = PmsBrandCategoryDynaSqlProvider.class,method="getPmsBrand")
    public Integer getPmsBrand(PmsBrand pmsBrand);


}
